package com.fh.controller;

import com.fh.service.IndexImgService;
import com.fh.vo.ResultVo;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("indeximg")
@CrossOrigin
public class IndexImgController {


    @Resource
    private IndexImgService indexImgService;

    @GetMapping("query")
    public ResultVo query(){
        return  indexImgService.query();
    }





}
